package com.ls.pattern.adapter.v2.adapters;


import com.ls.pattern.adapter.PassportService;
import com.ls.pattern.adapter.ResultMsg;

/**
 * 登录适配器基类
 *
 * @author 挥之以墨
 */
public abstract class BaseLoginAdapter extends PassportService implements ILoginAdapter {

    protected ResultMsg loginForRegister(String username, String password) {
        if (null == password) {
            password = "THIRD_EMPTY";
        }
        super.regist(username, password);
        return super.login(username, password);
    }

}
